//
//  GoodsTopCollectionViewCell.m
//  MyProject
//
//  Created by dllo on 15/10/29.
//  Copyright © 2015年 蓝鸥科技. All rights reserved.
//

#import "GoodsTopCollectionViewCell.h"

@implementation GoodsTopCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.topImageView = [[UIImageView alloc]init];
        [self.contentView addSubview:_topImageView];
        self.topImageView.layer.cornerRadius = [UIScreen mainScreen].bounds.size.width/25;
        self.topImageView.clipsToBounds = YES;
        //self.topImageView.backgroundColor = [UIColor blackColor];
    }
    return self;
}

- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    self.topImageView.frame = self.contentView.bounds;
 }


@end
